package com.zoe.app.service;

import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 * @author Zoe.Zhang
 * @date 2021/10/11
 * @description
 */
@Service
public class UserService {
    public String getUserById(Integer id) {
        System.out.println("service==>getUserById");
        try {
            TimeUnit.SECONDS.sleep(3);
            int b = 1 / id;
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "getUserById";
    }

    public String delUserById(Integer id) {
        System.out.println("service==>delUserById");
        try {
            TimeUnit.SECONDS.sleep(3);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "delUserById";
    }
}
